[Top] [Prev] [Next] [Bottom] [Contents]

SaSetDefaultVendor

Sets a flag to indicate which database vendor a Sapphire/Web-generated CGI executable will use when processing SQL statements embedded in an HTML template file.

Synopsis

#include "WorkingDialog.h"
int SaSetDefaultVendor(int vend);

Arguments

vend
Flag indicating whether to process SQL embedded into an HTML file.

Return Values

Returns a 0 on success, and a -1 if vend is an invalid number.

Description

Sets a flag to indicate which database vendor a Sapphire/Web-generated server application executable will use when processing SQL statements embedded in an HTML template file. If the flag is SGENODEF, embedded SQL is not processed. If the flag is set, then embedded SQL may be allowed depending on other settings (See Also). Valid vendor values are the defined constants:

SGESYBASE
SGEORACLE
SGEINFOMIX
Note: These values are case sensitive.
It is highly recommended that the default user for this path through the CGI be a restricted user when allowing embedded SQL. ##Sa_SQL=delete from authors##

Recommended format:
SaSetDefaultVendor(SGENODEF);
The following embedded SQL would potentially be dangerous if the default user had delete privileges.:

Not recommended:
##Sa_SQL=delete from authors##
Note: This call is generated automatically by Sapphire/Web in the cgi Main C file, with the dirname being the value of the "Database Vendor Option" project option.

See Also



[Top] [Prev] [Next] [Bottom] [Contents]

info@bluestone.com
Copyright © 1997, Bluestone. All rights reserved.